<%-- 
    Document   : DanhSachDeal
    Created on : Sep 20, 2012, 11:56:54 AM
    Author     : CUCAINHO
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>


<div class="dong_deal">
    
    <c:forEach var="deal" items="${danhSachDeal}">

                        
    <!--- BEGIN: DEAL -->
    <div class="deal_left">
        <table class="list_deal_table">
            <tr>
                <td colspan="5">
                    <div class="deal_name_list"> ${deal.tenDeal}</div>
                </td>                                        
            </tr>  
            <tr>
                <td colspan="5" align="center">
                    <img width="350" height="200" src="${deal.hinhMain}" />
                </td>
            </tr>

            <tr>
                <td width="75px"> <img src="images/gia.png" width="50" height="50" /> </td>                                            
                <td colspan="1"> <span class="deal_gia"> ${deal.giaGiam}</span></td>                                         
                <td colspan="1"><span class="deal_gia_giam">Giá gốc:  ${deal.giaGoc}</span></td>                                          
                <td colspan="2"><span class="deal_persen_giam"> ${deal.tiLeGiam}%</span></td>
            </tr>

            <tr>                                       
                <td><div class="deal_name_title_list">Phiếu đã bán</div></td>
                <td><div class="deal_name_title_list">Phiếu còn lại</div></td> 
                <td><div class="deal_name_title_list">Phiếu tối thiểu</div></td>
                <td><div class="deal_name_title_list">Phiếu tối đa</div></td>
                <td>&nbsp;</td>
            </tr>
            <tr>                                       
                <td>
                    <div class="deal_sophieudaban_list"> ${deal.soPhieuDaBan}</div>
                </td>
                <td>
                    <div class="deal_sophieudaban_list">${deal.soPhieuConLai}</div>
                </td> 
                <td>
                    <div class="deal_sophieudaban_list">${deal.soPhieuToiThieu}</div>
                </td>
                <td>
                    <div class="deal_sophieudaban_list">${deal.soPhieuToiDa}</div>
                </td>
                <td>&nbsp;</td>
            </tr>


            <tr>
                <td colspan="2"><span class="deal_thoigianconlai">Còn lại: 5 ngày</span></td>
                <td>
                </td>
                <td colspan="3"><a href="main?page=main&page=ChiTietDeal&id=${deal.maDeal}"> <img width="100" height="65" src="images/xem.png" /></a></td>                                           

            </tr>



        </table>

    </div> <!--end deal left --> 

    <!-- END:DEAL -->
  </c:forEach>
    
   


    <!--- BEGIN: DEAL 
    <div class="deal_left">
        <table class="list_deal_table">
            <tr>
                <td colspan="5">
                    <div class="deal_name_list">Buffetsssssssssssssssssssssssssssssss Tối Nhà Hàng Phú Khang</div>
                </td>                                        
            </tr>  
            <tr>
                <td colspan="5" align="center">
                    <img width="350" height="200" src="images/deal/sanpham.jpg" />
                </td>
            </tr>

            <tr>
                <td width="75px"> <img src="images/gia.png" width="50" height="50" /> </td>                                            
                <td colspan="1"> <span class="deal_gia">2.894.000 </span></td>                                         
                <td colspan="1"><span class="deal_gia_giam">Giá gốc: 15200</span></td>                                          
                <td colspan="2"><span class="deal_persen_giam">60%</span></td>
            </tr>

            <tr>                                       
                <td><div class="deal_name_title_list">Phiếu đã bán</div></td>
                <td><div class="deal_name_title_list">Phiếu còn lại</div></td> 
                <td><div class="deal_name_title_list">Phiếu tối thiểu</div></td>
                <td><div class="deal_name_title_list">Phiếu tối đa</div></td>
                <td>&nbsp;</td>
            </tr>
            <tr>                                       
                <td>
                    <div class="deal_sophieudaban_list">100</div>
                </td>
                <td>
                    <div class="deal_sophieudaban_list">100</div>
                </td> 
                <td>
                    <div class="deal_sophieudaban_list">100</div>
                </td>
                <td>
                    <div class="deal_sophieudaban_list">100</div>
                </td>
                <td>&nbsp;</td>
            </tr>


            <tr>
                <td colspan="2"><span class="deal_thoigianconlai">Còn lại: 5 ngày</span></td>
                <td>
                </td>
                <td colspan="3"><a href="#"> <img width="100" height="65" src="images/xem.png" /></a></td>                                           

            </tr>



        </table>

    </div> <!--end deal left --> 

    <!--END:DEAL -->




</div><!---end div dong_deal-->
